#ifndef DOCEDIT_H
#define DOCEDIT_H

#include <QtGui/QWidget>
#include <QtGui>
#include <QAxObject>
#include <QAxWidget>

QT_BEGIN_NAMESPACE
class QPushButton;      //button
QT_END_NAMESPACE

class DocEdit : public QWidget
{
	Q_OBJECT

public:
	DocEdit(QWidget *parent = 0, Qt::WFlags flags = 0);
	~DocEdit();

private slots:
    void add_edit();
    void add_table();
	void split_table_cell();
	void merger_table_cell();
	void add_line();
	void getReference();
	void setDocTagValue();
	void setExcelCellValue();
	void setExcel2();
private:
    QPushButton  *createButton(const QString &text, const char *member);
private:
    QPushButton     *addEditButton;
    QPushButton     *addTableButton;
    QPushButton     *addLineButton;
    QPushButton     *splitTableButton;
    QPushButton     *mergerTableButton;
    QPushButton     *getReferenceButton;
    QPushButton     *setDocTagValueButton;
    QPushButton     *setExcelCellValueButton;
    QPushButton     *setExcel2Button;

private:
    //QString         dotFilename;
    //QString         docFilename;
	//QAxWidget word;
	//QAxObject *docs;
	//QAxObject *doc;
};

#endif // DOCEDIT_H
